<%= javascript_include_tag 'jquery.tools.min' %>
<%= javascript_include_tag 'overlay' %>
<div id="confirm">

  <ul class="cart hot_list">
    <li>
      <%= render :partial =>'/products/product_flash',:object=>@product,
        :locals=>{:flash_params=>"product_id=#{@product.id}"} %>
      <dl class="rank_button_container">
        <dt class="detail_toolbar">
          <span><a href="/products/<%=@product.id%>" rel="#overlay" style="text-decoration:none" class="action_view">查看大图</a></span><br />
          小计:<span><%=@product.price%></span>
        </dt>
      </dl>
    </li>

    <li>
      <%= render :partial =>'/materials/material_detail',:object=>@product.material %>
    </li>
    <% @product.designs.each do |d|  %>
      <li>
        <%= render :partial =>'/designs/design_detail',:object=>d %>
      </li>
    <%end%>
  </ul>

  <div id="sum">
    小计:<span class="yen"><%=@product.price%></span>
  </div>
  <% if @product.check_material_design_quantity %>
    <form action="/store/add_to_cart" method="get" id="size">
      尺寸:
      <select name="tee_size" style="z-index:-1;" id="tee_size">
        <%=options_for_select(@product.material.tee_size.split(/,\s*/)) if @product.material.tee_size%>
      </select>
      数量:<input type="text" value="1"  size="2" name="quantity"></input>
      <input type="hidden" value="<%=@product.id%>" name="id"></input>
      <input type="image" src="/images/buy.gif" style="border:none;margin-bottom:-12px;" />
    <%else%>
      <span class="tips">抱歉,此款设计暂时缺货.</span>
    <%end%>
  </form>


  <div class="break_line">
    <a href="<%=back_url%>" class="action_back" title="返回上一步"></a>
  </div>
  <div class="action_link" style="padding-bottom:1em;">
    <span style="font-size:16px;">款式简介与尺寸表:</span>
  </div>

  <div>
    <%=@product.material.style.description %>
  </div>
  <div>
    <a href="/articles/3#ccbz" class="action_help" target="_blank">尺寸帮助</a>
  </div>
</div>